import QtQuick 2.0
import QtQuick.Window 2.1
import QtQuick.Controls 1.1

Window {
    id: config_widget_father
    width: 400
    height: 200

    property alias ip_input_text: input1.text
    property alias port_input_text: input2.text

    Rectangle {
        id: config_widget
        anchors.fill: parent
        //    color: "linen"

        Label {
            id: ip_label
            text: "Server Ip:"
            x: 5
            y: 5
        }

        LineEdit {
            id: input1
            x: ip_label.x + ip_label.width + 5; y: ip_label.y
            width: config_widget.width - x - 10; height: 20
            focus: true
            KeyNavigation.tab: input2
        }

        Label {
            id: port_label
            text: "Server Port:"
            x: 5
            y: ip_label.height + ip_label.y + 10
        }

        LineEdit {
            id: input2
            x: port_label.x + port_label.width + 5; y: port_label.y
            width: config_widget.width - x - 10; height: 20
            KeyNavigation.tab: input1
        }
    }
}
